package com.example.authsystem.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "用户统计数据")
public class UserStatsDto {
    @Schema(description = "用户ID", example = "1")
    private Long userId;
    @Schema(description = "登录次数", example = "45")
    private Long loginCount;
    @Schema(description = "最后登录时间")
    private LocalDateTime lastLoginTime;
    @Schema(description = "总会话数", example = "128")
    private Long totalSessions;
    @Schema(description = "平均会话时长", example = "35.5")
    private Double avgSessionDuration;
}